package com.sfzy.service;

import com.github.pagehelper.PageInfo;
import com.sfzy.entity.Carousel;

import java.util.List;

public interface CarouselService {
    //增
    int addCarousel(Carousel carousel);
    //删
    int deleteCarousel(int id);
    //改
    int updateCarousel(Carousel carousel);
    //根据id查
    Carousel getCarouselById(int id);
    //分页查
    PageInfo<Carousel> getAllCarousel(Carousel carousel, int pageNum, int pageSize);

}
